#include #include using namespace std; //get pointer //put pointer void removeTags(char s[]) { char result[1000] = ""; bool inTag = false; for(int i = 0; i < strlen(s); i++) { if(s[i] == '<') { inTag = true; } else if(s[i] == '>') { inTag = false; } else { if(!inTag) { int index = strlen(result); result[index] = s[i]; result[index+1] = '\0'; } } } strcpy(s,result); } void displayNextMovie(ifstream& fin) { // // 043- Get Smart // http://www2.netflix.com/Movie/Get-Smart/70077557 // http://www2.netflix.com/Movie/Get-Smart/70077557 // <a href="http://www2.netflix.com/Movie/Get-Smart/70077557"><img src="http://cdn-0.nflximg.com/us/boxshots/small/70077557.jpg"/></a><br>When the identities of secret agents from Control are compromised, the Chief (Alan Arkin) promotes hapless but eager analyst Maxwell Smart (Steve Carell) and teams him with stylish, capable Agent 99 (Anne Hathaway), the only spy whose cover remains intact. Can they work together to thwart the evil plans of KAOS and its crafty operative (Terence Stamp)? Dwayne "The Rock" Johnson co-stars in this comedy caper based on the classic television show. // char line[1000]; fin.getline(line,1000); fin.getline(line,1000); removeTags(line); cout << "Title = " << line << endl; fin.getline(line,1000); removeTags(line); cout << "Link = " << line << endl; fin.getline(line,1000); //removeTags(line); //cout << "Title = " << line << endl; fin.getline(line,1000); removeTags(line); cout << "Description = " << line << endl; fin.getline(line,1000); } void main() { ifstream fin; fin.open("Netflix.xml", ios_base::_Nocreate); char line[1000]; if(!fin.fail()) { do { fin.getline(line,1000); } while(strncmp(line,"